<!--  Nguyen Huu Nhat -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
@session_start();
include '../DataBase/ConnectDB.php';
include '../Security/CheckAdmin.php';
include '../Home/DefineVar.php';
//ユーザ認証、データベースのUserinforテーブルのisConfirmの価値は１になる。
mysql_select_db(MYSQL_DATABASE, $link)
or exit('Could not select database'.mysql_error());

$userId =$_GET['userId'];
$query = "UPDATE ".MYSQL_TABLE_USERINFOR." SET isConfirm ='1' WHERE userId='$userId';";
$result = mysql_query($query, $link);
if(!$result){
	print("<br><script type='text/javascript'> alert('".CONFIRM_ERR_MESS."'); window.location ='ConfirmUser.php';</script> ");
	exit();
}
else{
	print("<br><script type='text/javascript'> alert('".CONFIRM_OK_MESS."'); window.location ='ConfirmUser.php';</script> ");
	exit();
}
?>
</body>
</html>
